from app.models import BaseModel
from app.models.userModel import User
from tools import db


class Task(db.Model, BaseModel):
    __tablename__ = "api_task"
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    name = db.Column(db.String(120), unique=True)
    user_id = db.Column(db.Integer, db.ForeignKey(User.id))
    describe = db.Column(db.TEXT)
